package practicedemo64.Javabean;

public class Manager extends Employ {
    private double bonus;

    @Override
    public void work() {
        System.out.println("管理其他人");
    }

    public Manager() {
    }


    //带全部参数的构造
    //父类+子类
    public Manager(String id, String name, double salary, double bonus) {
        super(id, name, salary);
        this.bonus = bonus;
    }

    /**
     * 获取
     *
     * @return bonus
     */
    public double getBonus() {
        return bonus;
    }

    /**
     * 设置
     *
     * @param bonus
     */
    public void setBonus(double bonus) {
        this.bonus = bonus;
    }

}
